package com.ktg.mes.pro.domain;

public enum OrderStatus {
    scheduleWait, //待排产
    scheduling, //已排产
    product, //生产中
    productComple; //生产完成

    @Override
    public String toString(){
        return toName();
    }

    public String toName(){
        switch (this){
            case scheduleWait:
            {
                return "待排产";
            }
            case scheduling:
            {
                return "已排产";
            }
            case product:
            {
                return "生产中";
            }
            case productComple:
            {
                return "生产完成";
            }
        }
        return "草稿";
    }
}
